package com.hevery.crud.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by zhy on 2017/8/23.
 */
@Controller
@RequestMapping("page")
public class PageController {
    /**
     *具体的页面跳转逻辑
     *@param pageName
     *@return 视图名
      */
    @RequestMapping(value ="{pageName}",method = RequestMethod.GET)
    public String toPage(@PathVariable String pageName){
        return pageName;
    }
}
